package com.example.springbootdemo.repository;

import com.example.springbootdemo.entity.Student;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by apk2sf on 2017/12/28.
 * email: apk2sf@163.com
 * QQ：337081267
 */

public interface StudentRepository extends JpaRepository<Student, Integer> {

    //扩展查询方式
    List<Student> findAllByAge(Integer age);
}
